cmake_minimum_required(VERSION 3.22)

set(CMAKE_PROJECT_NAME Socket)

project(${CMAKE_PROJECT_NAME})

enable_language(C ASM CXX)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED NO)

add_executable(${CMAKE_PROJECT_NAME})

target_sources(${CMAKE_PROJECT_NAME} PRIVATE
    app/main.c
    tcp/tcp_server.c
    tcp/tcp_client.c
    udp/udp_server.c
    udp/udp_client.c
)

target_include_directories( ${CMAKE_PROJECT_NAME} PRIVATE
    tcp
    udp
)